/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
package Main;

import javax.persistence.EntityManager;
import javax.persistence.EntityManagerFactory;

/**
 *
 * @author diego
 */
public class Conexion {

    public EntityManager conectar() {
        EntityManagerFactory emf = javax.persistence.Persistence.createEntityManagerFactory("EntitySGRPU");
        return emf.createEntityManager();
    }
}